package com.dctp.common.vo;

public class RedisKey {

    public static final String USER_CACHE = "user_cache_"; // 用户缓存前缀
    public static final String ROLE_CACHE = "role_cache_"; // 角色缓存前缀
    public static final String RISK_METRIC_CACHE = "risk_metric_cache_"; // 风险指标缓存前缀
    public static final String PAY_PASSWORD_VALID = "pay_password_valid_%s"; // 支付密码验证缓存前缀
    public static final String VALIDATE_CODE = "validate_code_%s"; // 验证码缓存前缀
    public static final String VALIDATE_CODE_SENT = "validate_sent_%s"; // 验证码缓存前缀
    public static final String VALIDATE_CODE_CHECKED = "validate_code_checked_%s"; // 验证码缓存前缀

    // 其他可能的缓存键可以在这里添加
    //合约最新价格
    public static final String CONTRACT_LAST_PRICE = "contract_last_price_%s"; // 合约最新价格缓存前缀

    public static final String CONTRACT_KLINE_1M_LAST_PRICE = "contract_kline_1m_last_price_%s"; // 合约1分钟K线最新价格缓存前缀


    public static final String FUND_FLOW_KEY = "fund_flow_key";


    public static final String ACTIVITY_SYMBOL_PRICE = "activity_symbol_price_%s_%s_%s";


    public static final String KLINE_DAY_KEY = "kline_day_key_%s"; // 日K线缓存前缀


    public static final String USER_COMPENSATE_AMOUNT = "user_compensate_amount_%s_%s_%s";


    public static final String FUTURES_FOCUS_TIME = "futures_focus_time_%s_%s_%s";


    public static final String SYB_MESSAGE_ALERT = "syb_message_alert_%s_%s";

    //活动检测推送锁
    public static final String ACTIVITY_TRIGGER_LOCK = "activity_trigger_lock_%s";


    public static final String PUB_SUB_TRADE_ORDER = "PUB_SUB_TRADE_ORDER";
    public static final String PUB_SUB_SIMULATE_TRADE_ORDER = "PUB_SUB_SIMULATE_TRADE_ORDER";



    public static final String PUB_SUB_MARKET_TICKER = "PUB_SUB_MARKET_TICKER";

    public static final String PUB_SUB_PUSH_CHANNEL = "PUB_SUB_PUSH_CHANNEL";

    public static final String PUB_SUB_MESSAGE_CHANNEL = "PUB_SUB_MESSAGE_CHANNEL";

    public static final String PUB_SUB_KLINE_CHANNEL = "PUB_SUB_KLINE_CHANNEL";

    public static final String PUB_SUB_ADMIN_ORDER = "PUB_SUB_ADMIN_ORDER";


    // ✅ Redis Key 前缀（后续可统一管理）
    public static final String KEY_ORDER_COUNT = "user:%d:orders:count";
    public static final String KEY_ORDER_LOTS = "user:%d:orders:lots";
    public  static final String KEY_HOLDING_LOTS = "user:%d:orders:holding";
    public  static final String KEY_DAY_PNL = "user:%d:risk:daypnl";



    public static final String SERVER_ONLINE_COUNT = "%s:onlineCount";


    public static final String USER_INIT_PROFIT = "user:init_profit:%d";
    public static final String USER_SYB_BALANCE = "user:syb_balance:%d";


    public static final String MERCHANT_LOGIN_QR_CODE = "merchant:login:%s";

}
